Dynamic Distribution Group comes back empty after adding "-and (Office -eq 'OfficeName')" filter

I made a very large number of DDGs through Powershell and when I try to change the way they are distributed (I added Office) the recipient list is empty. When I remove the office filter, everyone in the entire department is listed.

This is the cmdlet I have been using:

Set-DynamicDistributionGroup -Identity DDG.Name -RecipientFilter {((Department -eq 'Department') -and (Office -eq 'Office, Office-remote') -and (RecipientType -eq 'UserMailbox'))}

I verified through O365 and exchange and even ran this:

$members = Get-DynamicDistributionGroup ddg@domain.com

Get-Recipient -RecipientPreviewFilter $members.RecipientFilter | ft name, primarysmtpaddress, office >> C:\\members.txt

And when there is no Office filter, all the users' offices are listed.

Am I editing the DDG incorrectly? Or is there an issue with O365 syncing with office filters


  • Edited by MDBrauer 16 hours 7 minutes ago
September 1st, 2015 11:25am

Hi,

As you are using Office 365, I suggest you post the question in the Exchange Online forum to get more dedicated assistance:

https://social.technet.microsoft.com/Forums/msonline/en-US/home?forum=onlineservicesexchange

Regards,

Melon Chen
TechNet Community Su

Free Windows Admin Tool Kit Click here and download it now
September 2nd, 2015 2:37am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics